<template>
  <div class="wrapflex">
      <SideBar  v-if="!(route.path=='/login')" />
      <router-view/>
      
  </div>
</template>

<script lang="ts">

import SideBar from './components/SideBar.vue'
import { useRoute } from "vue-router";

export default {
  components:{SideBar},
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  setup(){
    // window.onload = function() {
    //   document.addEventListener('touchstart', function(event) {
    //     if (event.touches.length > 1) {
    //       event.preventDefault()
    //     }
    //   })
    //   document.addEventListener('gesturestart', function(event) {
    //     event.preventDefault()
    //   })
    // }

    const route = useRoute();
    console.log("$$$",route)
    return{
      route
    }
  }

}
</script>

<style scoped>
@import "../static/css/reset.css";
.wrapflex{
  display: flex;
}

</style>
